package com.zou.api.enums;

/*
 * @auth zoujt
 * @date 2021/3/18
 * @Description
 */
public enum  BaseEnum {
    SUCCESS(200,"成功"),
    FAIL(-1,"失败"),
    EXCEPTION(500,"未知异常，请联系管理员") ;

    private Integer code;
    private  String msg;

    BaseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
